﻿@namespace Blazorise
@inherits BaseDraggableComponent
<CascadingValue Value="@this" IsFixed>
    <tr @ref="@ElementRef" id="@ElementId" class="@ClassNames" style="@StyleNames" @onclick="@OnClickHandler"
        draggable="@DraggableString"
        @onmouseover="@(MouseOver.HasDelegate ? OnMouseOverHandler : null)"
        @onmouseover:stopPropagation="@(MouseOver.HasDelegate)"
        @onmouseleave="@(MouseLeave.HasDelegate ? OnMouseLeaveHandler : null)"
        @onmouseleave:stopPropagation="@(MouseLeave.HasDelegate)"
        @ondragend="@OnDragEndHandler"
        @ondragend:preventDefault="@DragEndPreventDefault"
        @ondragenter="@OnDragEnterHandler"
        @ondragenter:preventDefault="@DragEnterPreventDefault"
        @ondragleave="@OnDragLeaveHandler"
        @ondragleave:preventDefault="@DragLeavePreventDefault"
        @ondragstart="@OnDragStartHandler"
        @ondragstart:preventDefault="@DragStartPreventDefault"
        @ondrop="@OnDropHandler"
        @ondrop:preventDefault="@DropPreventDefault"
        @oncontextmenu="@OnContextMenuHandler"
        @oncontextmenu:preventDefault="@ContextMenuPreventDefault"
        @attributes="@Attributes">
        @ChildContent
    </tr>
</CascadingValue>